package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.List;

/**
 *
 * @author lishuanwang
 */
@Getter
@Setter
@JsonIgnoreProperties("handler")
public class Chatroom {
    /**
     * PRIVATE_ROOM:私聊
     * GROUP_ROOM:群聊
     */
    public static final int PRIVATE_ROOM=0;
    public static final int GROUP_ROOM=1;
    private Long id;

    private String name;

    private String headImg;

    private Integer type = PRIVATE_ROOM;

    private Date createTime;

    private Date updateTime;

    private List<User>  users;

}